package com.cqggrw.service;

import java.util.List;

import com.cqggrw.dao.Category;
import com.cqggrw.domain.Img;
import com.cqggrw.domain.News;


public interface NewsServiceI<T> {

	public boolean add(T t, String realPath);
	public boolean del(int id);
	public boolean modify(T t);
	public T get(T t);
	public Object get();
	public Object get(T t, int i);
	public List<T> getByTypeId(int id);
	public List<News> searchByName(String name, Integer page);
	public int countForSearch(String name);
	
	public List<Category> getCate();
	
	public List<Img> getImgByFalg(T t);
	
	public boolean addNewsImg(T t, String realPath);
	public boolean updateNewsImg(T t, String realPath);
	public boolean delNewsImg(T t);
	
	List<T> getListHasImgByType(Integer id);
	
	
}
